home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10313 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 74 6e 65 77 73 2e 75 74 |Path: ne|tnews.ut|
|00000010| 68 73 63 73 61 2e 65 64 | 75 21 75 73 65 6e 65 74 |hscsa.ed|u!usenet|
|00000020| 0a 46 72 6f 6d 3a 20 4d | 65 72 61 72 64 6f 20 4d |.From: M|erardo M|
|00000030| 6f 6e 7a 6f 6e 20 3c 4d | 6f 6e 7a 6f 6e 40 75 74 |onzon <M|onzon@ut|
|00000040| 68 73 63 73 61 2e 65 64 | 75 3e 0a 4e 65 77 73 67 |hscsa.ed|u>.Newsg|
|00000050| 72 6f 75 70 73 3a 20 63 | 6f 6d 70 2e 6c 61 6e 67 |roups: c|omp.lang|
|00000060| 2e 63 0a 53 75 62 6a 65 | 63 74 3a 20 52 65 3a 20 |.c.Subje|ct: Re: |
|00000070| 4e 6f 76 69 63 65 20 70 | 72 6f 67 72 61 6d 6d 65 |Novice p|rogramme|
|00000080| 72 20 6e 65 65 64 73 20 | 68 65 6c 70 21 0a 44 61 |r needs |help!.Da|
|00000090| 74 65 3a 20 53 61 74 2c | 20 31 36 20 4d 61 72 20 |te: Sat,| 16 Mar |
|000000a0| 31 39 39 36 20 31 32 3a | 34 36 3a 34 30 20 2b 30 |1996 12:|46:40 +0|
|000000b0| 30 30 30 0a 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |000.Orga|nization|
|000000c0| 3a 20 55 2e 54 2e 20 48 | 65 61 6c 74 68 20 53 63 |: U.T. H|ealth Sc|
|000000d0| 69 65 6e 63 65 20 43 65 | 6e 74 65 72 0a 4d 65 73 |ience Ce|nter.Mes|
|000000e0| 73 61 67 65 2d 49 44 3a | 20 3c 33 31 34 41 42 38 |sage-ID:| <314AB8|
|000000f0| 33 30 2e 36 38 34 40 75 | 74 68 73 63 73 61 2e 65 |30.684@u|thscsa.e|
|00000100| 64 75 3e 0a 52 65 66 65 | 72 65 6e 63 65 73 3a 20 |du>.Refe|rences: |
|00000110| 3c 34 69 65 6f 76 37 24 | 72 35 40 6c 61 6e 74 61 |<4ieov7$|r5@lanta|
|00000120| 6e 61 2e 73 69 6e 67 6e | 65 74 2e 63 6f 6d 2e 73 |na.singn|et.com.s|
|00000130| 67 3e 0a 52 65 70 6c 79 | 2d 54 6f 3a 20 4d 6f 6e |g>.Reply|-To: Mon|
|00000140| 7a 6f 6e 40 75 74 68 73 | 63 73 61 2e 65 64 75 0a |zon@uths|csa.edu.|
|00000150| 4e 4e 54 50 2d 50 6f 73 | 74 69 6e 67 2d 48 6f 73 |NNTP-Pos|ting-Hos|
|00000160| 74 3a 20 61 63 6c 61 62 | 32 2e 75 74 68 73 63 73 |t: aclab|2.uthscs|
|00000170| 61 2e 65 64 75 0a 4d 69 | 6d 65 2d 56 65 72 73 69 |a.edu.Mi|me-Versi|
|00000180| 6f 6e 3a 20 31 2e 30 0a | 43 6f 6e 74 65 6e 74 2d |on: 1.0.|Content-|
|00000190| 54 79 70 65 3a 20 74 65 | 78 74 2f 70 6c 61 69 6e |Type: te|xt/plain|
|000001a0| 3b 20 63 68 61 72 73 65 | 74 3d 75 73 2d 61 73 63 |; charse|t=us-asc|
|000001b0| 69 69 0a 43 6f 6e 74 65 | 6e 74 2d 54 72 61 6e 73 |ii.Conte|nt-Trans|
|000001c0| 66 65 72 2d 45 6e 63 6f | 64 69 6e 67 3a 20 37 62 |fer-Enco|ding: 7b|
|000001d0| 69 74 0a 58 2d 4d 61 69 | 6c 65 72 3a 20 4d 6f 7a |it.X-Mai|ler: Moz|
|000001e0| 69 6c 6c 61 20 32 2e 30 | 20 28 4d 61 63 69 6e 74 |illa 2.0| (Macint|
|000001f0| 6f 73 68 3b 20 49 3b 20 | 36 38 4b 29 0a 0a 4e 6f |osh; I; |68K)..No|
|00000200| 76 69 63 65 20 50 6f 72 | 67 72 61 6d 6d 65 72 2c |vice Por|grammer,|
|00000210| 20 49 20 63 6f 6d 70 69 | 6c 65 64 20 74 68 65 20 | I compi|led the |
|00000220| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 79 6f 75 27 |applicat|ion you'|
|00000230| 76 65 20 70 72 6f 76 69 | 64 65 64 20 61 66 74 65 |ve provi|ded afte|
|00000240| 72 20 0a 66 69 78 69 6e | 67 20 61 62 6f 75 74 20 |r .fixin|g about |
|00000250| 35 2d 37 20 65 72 72 6f | 72 73 2e 20 49 20 64 6f |5-7 erro|rs. I do|
|00000260| 6e 27 74 20 6b 6e 6f 77 | 20 77 68 61 74 20 63 6f |n't know| what co|
|00000270| 6d 70 69 6c 65 72 20 79 | 6f 75 20 61 72 65 20 75 |mpiler y|ou are u|
|00000280| 73 69 6e 67 20 6d 79 20 | 0a 4d 61 63 20 53 79 6d |sing my |.Mac Sym|
|00000290| 61 6e 74 65 63 20 43 2b | 2b 20 63 6f 6d 70 69 6c |antec C+|+ compil|
|000002a0| 65 72 20 63 6f 6d 70 69 | 6c 65 64 20 74 68 65 20 |er compi|led the |
|000002b0| 70 72 6f 67 72 61 6d 20 | 61 66 74 65 72 20 49 20 |program |after I |
|000002c0| 66 69 78 65 64 20 74 68 | 65 20 0a 66 6f 6c 6c 6f |fixed th|e .follo|
|000002d0| 77 69 6e 67 20 65 72 72 | 6f 72 73 3a 0a 09 0a 09 |wing err|ors:....|
|000002e0| 09 31 29 20 23 64 65 66 | 69 6e 65 20 74 6f 74 6e |.1) #def|ine totn|
|000002f0| 75 6d 20 32 30 20 20 20 | 20 20 20 20 2f 2f 74 6f |um 20 | //to|
|00000300| 74 61 6c 20 6e 6f 2e 20 | 6f 66 20 65 6e 74 72 69 |tal no. |of entri|
|00000310| 65 73 20 69 6e 20 6c 69 | 73 74 3d 32 30 0a 0a 09 |es in li|st=20...|
|00000320| 09 09 09 09 09 09 09 09 | 09 09 09 20 2f 2f 74 6f |........|... //to|
|00000330| 74 61 6c 20 6e 6f 2e 20 | 6f 66 20 65 6e 74 72 69 |tal no. |of entri|
|00000340| 65 73 20 69 6e 20 6c 69 | 73 74 3d 32 30 0a 09 09 |es in li|st=20...|
|00000350| 20 20 20 46 69 78 65 64 | 3a 20 23 64 65 66 69 6e | Fixed|: #defin|
|00000360| 65 20 74 6f 74 6e 75 6d | 20 32 30 0a 0a 09 20 32 |e totnum| 20... 2|
|00000370| 29 20 73 74 72 75 63 74 | 20 6c 69 73 74 20 2a 66 |) struct| list *f|
|00000380| 72 69 65 6e 64 5b 6e 75 | 6d 74 6f 74 5d 3b 0a 0a |riend[nu|mtot];..|
|00000390| 09 09 09 09 09 46 69 78 | 65 64 3a 20 20 73 74 72 |.....Fix|ed: str|
|000003a0| 75 63 74 20 6c 69 73 74 | 20 2a 66 72 69 65 6e 64 |uct list| *friend|
|000003b0| 5b 74 6f 74 6e 75 6d 5d | 3b 20 20 2f 2f 20 4e 4f |[totnum]|; // NO|
|000003c0| 54 20 6e 75 6d 74 6f 74 | 6f 20 62 75 74 20 74 6f |T numtot|o but to|
|000003d0| 74 6e 75 6d 0a 0a 09 09 | 33 29 09 20 66 67 65 74 |tnum....|3). fget|
|000003e0| 73 28 66 72 69 65 6e 64 | 5b 6e 75 6d 5d 2d 3e 6e |s(friend|[num]->n|
|000003f0| 61 6d 65 5b 5d 2c 31 35 | 2c 73 74 64 69 6e 29 3b |ame[],15|,stdin);|
|00000400| 20 2f 2f 20 53 79 6e 74 | 61 78 20 45 52 52 4f 52 | // Synt|ax ERROR|
|00000410| 0a 0a 09 09 09 09 09 46 | 69 78 65 64 3a 20 20 66 |.......F|ixed: f|
|00000420| 67 65 74 73 28 66 72 69 | 65 6e 64 5b 6e 75 6d 5d |gets(fri|end[num]|
|00000430| 2d 3e 6e 61 6d 65 2c 31 | 35 2c 73 74 64 69 6e 29 |->name,1|5,stdin)|
|00000440| 3b 0a 0a 45 72 72 6f 72 | 20 6e 75 6d 62 65 72 20 |;..Error| number |
|00000450| 33 20 6f 63 63 75 72 72 | 73 20 6d 75 6c 74 69 70 |3 occurr|s multip|
|00000460| 6c 65 20 74 69 6d 65 20 | 69 6e 20 79 6f 75 72 20 |le time |in your |
|00000470| 63 6f 64 65 2e 0a 0a 45 | 72 72 6f 72 20 6e 75 6d |code...E|rror num|
|00000480| 62 65 72 20 31 20 69 73 | 20 76 65 72 79 20 63 6f |ber 1 is| very co|
|00000490| 6d 6d 6f 6e 20 66 6f 72 | 20 6e 6f 76 69 63 65 20 |mmon for| novice |
|000004a0| 43 20 70 72 6f 67 72 61 | 6d 6d 65 72 73 20 74 6f |C progra|mmers to|
|000004b0| 20 6d 61 6b 65 2e 20 54 | 68 65 20 0a 74 6f 74 6e | make. T|he .totn|
|000004c0| 75 6d 20 6d 61 63 72 6f | 20 77 69 6c 6c 20 62 65 |um macro| will be|
|000004d0| 20 72 65 70 6c 61 63 65 | 64 20 77 69 74 68 20 65 | replace|d with e|
|000004e0| 76 65 72 79 74 68 69 6e | 67 20 74 6f 20 74 68 65 |verythin|g to the|
|000004f0| 20 72 69 67 68 74 20 6f | 66 20 74 68 65 20 0a 77 | right o|f the .w|
|00000500| 68 69 74 65 20 73 70 61 | 63 65 2c 20 28 69 2e 65 |hite spa|ce, (i.e|
|00000510| 2e 20 32 30 20 20 20 20 | 2f 2f 74 6f 74 61 6c 20 |. 20 |//total |
|00000520| 6e 6f 2e 20 6f 66 20 65 | 6e 74 72 69 65 73 20 69 |no. of e|ntries i|
|00000530| 6e 20 6c 69 73 74 3d 32 | 30 29 2e 20 4c 6f 6f 6b |n list=2|0). Look|
|00000540| 20 61 74 20 0a 74 68 65 | 20 73 6f 75 72 63 65 20 | at .the| source |
|00000550| 6c 69 73 74 69 6e 67 20 | 74 6f 20 73 65 65 20 68 |listing |to see h|
|00000560| 6f 77 20 74 6f 6e 75 6d | 20 69 73 20 72 65 70 6c |ow tonum| is repl|
|00000570| 61 63 65 64 20 77 69 74 | 68 20 74 68 65 20 6d 61 |aced wit|h the ma|
|00000580| 63 72 6f 20 0a 79 6f 75 | 27 76 65 20 64 65 66 69 |cro .you|'ve defi|
|00000590| 6e 65 64 2e 0a 0a 49 20 | 68 6f 70 65 20 74 68 69 |ned...I |hope thi|
|000005a0| 73 20 68 65 6c 70 73 2e | 20 20 49 66 20 6d 79 20 |s helps.| If my |
|000005b0| 65 78 70 6c 61 6e 61 74 | 69 6f 6e 20 69 73 20 6e |explanat|ion is n|
|000005c0| 6f 74 20 63 6c 65 61 72 | 20 72 65 76 69 65 77 20 |ot clear| review |
|000005d0| 74 68 65 20 0a 70 72 65 | 2d 70 72 6f 63 65 73 73 |the .pre|-process|
|000005e0| 69 6e 67 20 64 65 72 65 | 63 74 69 76 65 20 63 68 |ing dere|ctive ch|
|000005f0| 61 70 74 65 72 20 6f 66 | 20 79 6f 75 72 20 62 6f |apter of| your bo|
|00000600| 6f 6b 2e 20 20 4f 72 20 | 62 65 74 74 65 72 20 79 |ok. Or |better y|
|00000610| 65 74 20 0a 65 78 70 65 | 72 69 6d 65 6e 74 20 77 |et .expe|riment w|
|00000620| 69 74 68 20 61 20 68 65 | 6c 6c 6f 20 77 6f 72 6c |ith a he|llo worl|
|00000630| 64 20 73 69 7a 65 20 70 | 72 6f 67 72 61 6d 20 75 |d size p|rogram u|
|00000640| 73 69 6e 67 20 64 65 66 | 69 6e 65 73 20 61 6e 64 |sing def|ines and|
|00000650| 20 6c 6f 6f 6b 69 6e 67 | 20 0a 61 74 20 74 68 65 | looking| .at the|
|00000660| 20 73 6f 75 72 63 65 20 | 6c 69 73 74 69 6e 67 20 | source |listing |
|00000670| 74 6f 20 6c 65 61 72 6e | 20 77 68 61 74 20 74 68 |to learn| what th|
|00000680| 65 20 63 6f 6d 70 69 6c | 65 72 20 69 73 20 64 6f |e compil|er is do|
|00000690| 69 6e 67 2e 0a 0a 4b 65 | 65 70 20 61 74 20 69 74 |ing...Ke|ep at it|
|000006a0| 21 20 2d 3a 29 0a 4d 65 | 72 61 72 64 6f 20 4d 6f |! -:).Me|rardo Mo|
|000006b0| 6e 7a 6f 6e 0a 4d 6f 6e | 7a 6f 6e 40 75 74 68 73 |nzon.Mon|zon@uths|
|000006c0| 63 73 61 2e 65 64 75 0a | |csa.edu.| |
+--------+-------------------------+-------------------------+--------+--------+